package com.gome.axwl.aoc.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.gome.axwl.aoc.dao.ContractDao;
import com.gome.axwl.aoc.dao.EmptyContractDao;
import com.gome.axwl.aoc.entity.po.ContractPo;
import com.gome.axwl.aoc.entity.po.EmptyContractPo;
import com.gome.axwl.aoc.service.ContractService;
import com.gome.axwl.aoc.service.EmptyContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * Created by wanglongyu on 2018/7/13.
 */
@Service
public class EmptyContractServiceImpl implements EmptyContractService{

    @Autowired
    private EmptyContractDao emptyContractDao;

    @Override
    public EmptyContractPo queryByNo(String emptyContractNo) {
        return emptyContractDao.queryByNo(emptyContractNo);
    }

    @Override
    public EmptyContractPo queryByApplyInfoId(Integer applyInfoId) {
        return emptyContractDao.queryByApplyInfoId(applyInfoId);
    }

    @Override
    public int updateJson(String emptyContractJson, Integer applyInfoId,Date modifyTime) {
        return emptyContractDao.updateJson(emptyContractJson, applyInfoId,modifyTime);
    }

    @Override
    public int addEmptyContract(EmptyContractPo emptyContractPo) {
        return emptyContractDao.addEmptyContract(emptyContractPo);
    }

    @Override
    public int updateStatus(Integer applyInfoId, Integer status, Date modifyTime) {
        return emptyContractDao.updateStatus(applyInfoId, status, modifyTime);
    }
}
